using System;

namespace LDNS.Models
{
    /// <summary>
    /// DNS记录统计模型
    /// 作者：huobing
    /// </summary>
    public class DnsRecordStatistics
    {
        /// <summary>
        /// 记录总数
        /// </summary>
        public int TotalRecords { get; set; } = 0;
        
        /// <summary>
        /// A记录数量
        /// </summary>
        public int ARecordCount { get; set; } = 0;
        
        /// <summary>
        /// CNAME记录数量
        /// </summary>
        public int CnameRecordCount { get; set; } = 0;
        
        /// <summary>
        /// AAAA记录数量
        /// </summary>
        public int AaaaRecordCount { get; set; } = 0;
        
        /// <summary>
        /// MX记录数量
        /// </summary>
        public int MxRecordCount { get; set; } = 0;
        
        /// <summary>
        /// TXT记录数量
        /// </summary>
        public int TxtRecordCount { get; set; } = 0;
        
        /// <summary>
        /// 其他记录类型数量
        /// </summary>
        public int OtherRecordCount { get; set; } = 0;
        
        /// <summary>
        /// 启用记录数量
        /// </summary>
        public int EnabledRecords { get; set; } = 0;
        
        /// <summary>
        /// 禁用记录数量
        /// </summary>
        public int DisabledRecords { get; set; } = 0;
        
        /// <summary>
        /// 平均TTL（秒）
        /// </summary>
        public double AverageTtl { get; set; } = 0;
        
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime LastUpdated { get; set; } = DateTime.Now;
    }
}